#!/bin/sh

# requirements:
# - xsetroot
# - feh
# - pip install psutil requests

_local_dir=$(cd "$(dirname $0)";pwd)

if command -v feh &> /dev/null; then
    if [[ -f $HOME/.fehbg ]]; then
        . $HOME/.fehbg
    elif [[ -f $HOME/dotfiles/suckless/wallpaper.jpg ]]; then
        feh --bg-scale $_local_dir/wallpaper.jpg
    fi
else
    notify-send "warning from startdwm.sh" "command feh not found"
fi

if command -v python &> /dev/null; then
    python $_local_dir/dwmstatus.py &
else
    $HOME/dotfiles/suckless/dwmstatus.sh &
fi

exec dwm
